package com.usian.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;

@Data
@TableName("good")
public class Good implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "gid", type = IdType.AUTO)
    private Integer gid;

    /**
     * 商品名称
     */
    private String gname;

    /**
     * 商品价格
     */
    private Integer price;

    /**
     * 商品库存
     */
    private Integer num;
    @TableField(exist = false)
    private Integer shu;
    @TableField(exist = false)
    private Integer did;

}
